package com.ks.dto;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class ClassifyDto implements Serializable {

	private static final long serialVersionUID = -9156348640978008516L;

	private Integer id;
	private String name;
	private int hasPublic;
	private int showIndex;
	private Timestamp createTime;
	private Timestamp modifyTime;

	List<BrandDto> list = new ArrayList<BrandDto>();

	private List<ProductDto> productList;

	public List<ProductDto> getProductList() {
		return productList;
	}

	public void setProductList(List<ProductDto> productList) {
		this.productList = productList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getHasPublic() {
		return hasPublic;
	}

	public void setHasPublic(int hasPublic) {
		this.hasPublic = hasPublic;
	}

	public int getShowIndex() {
		return showIndex;
	}

	public void setShowIndex(int showIndex) {
		this.showIndex = showIndex;
	}

	/**
	 * @return the list
	 */
	public List<BrandDto> getList() {
		return list;
	}

	/**
	 * @param list
	 *            the list to set
	 */
	public void setBrandDto(BrandDto brandDto) {
		this.list.add(brandDto);
	}

}
